package com.findFish.fish.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.findFish.fish.mapper.FishPopulationMapper;
import com.findFish.fish.domain.FishPopulation;
import com.findFish.fish.service.IFishPopulationService;

/**
 * 鱼群管理Service业务层处理
 * 
 * @author admin
 * @date 2025-04-01
 */
@Service
public class FishPopulationServiceImpl implements IFishPopulationService 
{
    @Autowired
    private FishPopulationMapper fishPopulationMapper;

    /**
     * 查询鱼群管理
     * 
     * @param id 鱼群管理主键
     * @return 鱼群管理
     */
    @Override
    public FishPopulation selectFishPopulationById(Long id)
    {
        return fishPopulationMapper.selectFishPopulationById(id);
    }

    /**
     * 查询鱼群管理列表
     * 
     * @param fishPopulation 鱼群管理
     * @return 鱼群管理
     */
    @Override
    public List<FishPopulation> selectFishPopulationList(FishPopulation fishPopulation)
    {
        return fishPopulationMapper.selectFishPopulationList(fishPopulation);
    }

    /**
     * 新增鱼群管理
     * 
     * @param fishPopulation 鱼群管理
     * @return 结果
     */
    @Override
    public int insertFishPopulation(FishPopulation fishPopulation)
    {
        return fishPopulationMapper.insertFishPopulation(fishPopulation);
    }

    /**
     * 修改鱼群管理
     * 
     * @param fishPopulation 鱼群管理
     * @return 结果
     */
    @Override
    public int updateFishPopulation(FishPopulation fishPopulation)
    {
        return fishPopulationMapper.updateFishPopulation(fishPopulation);
    }

    /**
     * 批量删除鱼群管理
     * 
     * @param ids 需要删除的鱼群管理主键
     * @return 结果
     */
    @Override
    public int deleteFishPopulationByIds(Long[] ids)
    {
        return fishPopulationMapper.deleteFishPopulationByIds(ids);
    }

    /**
     * 删除鱼群管理信息
     * 
     * @param id 鱼群管理主键
     * @return 结果
     */
    @Override
    public int deleteFishPopulationById(Long id)
    {
        return fishPopulationMapper.deleteFishPopulationById(id);
    }
}
